<div class="x_panel">
  <div class="x_content" style="display: block;">
    <form action="/goods/batch-on.html" method="post">
    {foreach $goods as $key=>$goodsitem}
    <div class="row-fluid">
      <label class="control-label">SPIID: </label>{$goodsitem.yx_goods_id}<br/>
      <label class="control-label">商品名称：</label>{$goodsitem.goods_name}<br/>

    </div>
    <br>

    <div class="cont">
      <table class="table table-bordered table-striped">
        <thead>
        <tr>
          <th width="100px">SKU ID</th>
          <th width="100px">SKU图片</th>
          <th>SKU描述</th>
          <th>规格</th>
          <th>严选价格</th>
          <th>渠道价格</th>
          <th>库存</th>
          <!--<th>优惠价</th>-->
        </tr>
        </thead>
        <tbody>
        {foreach $goodsitem.skuList as $k=>$skuitem}
        <tr>
          <td>{$skuitem.yx_sku_id}</td>
          <td><img src="{$skuitem.sku_pic}" width="50px" height="50px" /> </td>
          <td width="300px">{$skuitem.display_string}</td>
          <td width="300px">
            {foreach json_decode($skuitem.sku_spec,true) as $ke=>$specitem}
            {if $ke!=0}<br/>{/if}{$specitem.spec_name}:{$specitem.spec_value}
            {/foreach}
          </td>
          <td>{$skuitem.yanxuan_price}</td>
          <td>{$skuitem.channel_price}</td>
          <td>{$skuitem.stock}</td>
          <!--<td>
            <div class="x_content">-->
              <input type="hidden" name="form[sku_price][{$goodsitem.yx_goods_id}][{$skuitem.yx_sku_id}]" />
            <!--</div>
          </td>-->
        </tr>
        {/foreach}
        </tbody>
      </table>
      <!--分页-->
    </div>
      <input type="hidden" name="form[yx_goods_id][{$key}]" value="{$goodsitem.yx_goods_id}" />
  {/foreach}
      <button class="btn btn-primary" type="submit">提交</button>
    </form>
  </div>
</div>

